/*
 仅使用四则运算和循环语句实现
 */
package com.yuan.algorithms.Algorithm_1;

import java.util.Scanner;

public class 获取一个数的位数 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            long n = sc.nextLong();
            int sum = 0;
            n = n < 0 ? n * -1l : n;
            for (long i = n; i > 0; i /= 10) {
                sum++;
            }
            System.out.println(sum);
        }
    }

}
